package cn.movie.servlet;

import cn.movie.service.MovieService;
import cn.movie.service.MovieServiceImpl;
import cn.movie.service.MovieServiceImpl;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;

public class CinemaMesServlet extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        this.doPost(req,resp);
    }

    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        String opr = req.getParameter("opr");
        MovieService msim = new MovieServiceImpl();
        PrintWriter out = resp.getWriter();
        if("cinema__info".equals(opr)){
            List list = msim.queryCinema(400);
        }
    }
}
